import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    // 请求加载状态
    isLoading: false
  },
  getters: {
  },
  mutations: {
    // 请求加载状态改变
    changeLoadingState(state, data) {
      state.isLoading = data;
    }
  },
  actions: {
  },
  modules: {
  }
});
